package com.skyed;


import org.junit.Test;

import java.util.Date;

public class test {

    @Test
    public void timeDIff() {
        Date s = new Date(2020,11,27,13,43,0);
        Date e = new Date();
        System.out.println(s.getTime());
        System.out.println(e.getTime());
        System.out.println(s);
        System.out.println(e);
        long l = Math.abs(e.getTime() - s.getTime());
        System.out.println(l);
        int h = (int)(l/(1000*60*60*24));
        System.out.println(h);
    }

}
